package org.madgecko.dao.iface;

import org.madgecko.model.Student;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.Repository;

/**
 * Created by MadFrog on 2017/1/12.
 */
public interface StudentRepository extends Repository<Student, Integer> {
    @Query("select s from Student s where s.id=?1")
    public Student loadById(Integer id);

}
